/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.improvement.service.api;

import com.koron.common.bean.StaffBean;
import com.koron.improvement.bean.SecurityReportBean;
import org.springframework.web.multipart.MultipartFile;
import org.swan.bean.MessageBean;

public interface SecurityReportService {

    /**
     * 列表查询
     * @param corpCode
     * @param departmentCode
     * @param srName
     * @param srNo
     * @param fillDateStart
     * @param fillDateStop
     * @param reportTypeCode
     * @param reportLevel
     * @param page
     * @param pageSize
     * @return
     */
    MessageBean queryForList(String corpCode, String departmentCode,
                             String srName, String srNo, String fillDateStart,
                             String fillDateStop, String reportTypeCode, Integer reportLevel,
                             Integer page, Integer pageSize);

    /**
     * 根据ID查询安全报告
     * @param id
     * @return
     */
    MessageBean queryById(String id);

    /**
     * 根据ID删除安全报告
     * @param id
     * @return
     */
    MessageBean deleteById(String id);

    /**
     * 保存 安全报告
     * @param user
     * @param bean
     * @param files
     * @param status
     * @param subWaterDeparCodes
     * @param subCompChargeBusinLeaderCode
     * @param areaSecurityManagDeparCode
     * @param areaChargeSafetyLeaderCode
     * @param generalManagerCode
     * @param areaChargeLeaderCode
     * @return
     */
    MessageBean insert(StaffBean user, SecurityReportBean bean, MultipartFile[] files, String status,
                       String subWaterDeparCodes, String subCompChargeBusinLeaderCode, String areaSecurityManagDeparCode,
                       String areaChargeSafetyLeaderCode, String generalManagerCode, String areaChargeLeaderCode);

    /**
     * 修改 安全报告
     * @param user
     * @param bean
     * @param files
     * @param status
     * @param subWaterDeparCodes
     * @param subCompChargeBusinLeaderCode
     * @param areaSecurityManagDeparCode
     * @param areaChargeSafetyLeaderCode
     * @param generalManagerCode
     * @param areaChargeLeaderCode
     * @return
     */
    MessageBean update(StaffBean user, SecurityReportBean bean, MultipartFile[] files, String status,
                       String subWaterDeparCodes, String subCompChargeBusinLeaderCode, String areaSecurityManagDeparCode,
                       String areaChargeSafetyLeaderCode, String generalManagerCode, String areaChargeLeaderCode);
}
